package com.tk.demo.service.impl;

import com.tk.demo.service.StudentService;
import com.tk.demo.dao.StudentDao;
import com.tk.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

   @Autowired
    private StudentDao studentDao;

    @Override
    public List<Student> findStudentList() {
        return studentDao.findAll();
    }

    @Override
    public Student findOne(int id) {
        return  null;
    }

    @Override
    public Student saveAndFlush (Student student) {
        return studentDao.saveAndFlush(student);
    }

    @Override
    public Student save(Student student) {
        return null;
    }

    @Override
    public void deleteStudentById(Integer id) {

    }

}
